home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Software Vault: The Gold Collection
/
Software Vault - The Gold Collection (American Databankers) (1993).ISO
/
cdr49
/
actlib11.zip
/
STRINGS.ZIP
/
RMCHR.C
< prev
next >
Wrap
Text File
|
1993-01-14
|
667b
|
29 lines
/* Copyright (C) 1993 Marc Stern (internet: stern@mble.philips.be) */
#include "strings.h"
/***
* Function : strrmchr
*
* Description : Removing all occurences of a target character.
*
* Parameters : in/out char *string
* in char target target char to remove
*
* Return code : pointer to result.
*
* OS/Compiler : All
***/
char *strrmchr( char *string, char target )
{ char *ptr, *str_begin = string;
for ( ptr = string; *string; string ++ )
if ( *string != target ) *ptr++ = *string;
*ptr = '\0';
return str_begin;
}